package com.zs.usc.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

/**
 * <p>
 * 关联关系表
 * </p>
 *
 * @author ZS
 * @since 2021-12-11
 */
@TableName("usc_relation")
@ApiModel(value="RelationInfo对象", description="关联关系表")
@Data
@ToString
public class RelationInfo implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "关联关系ID")
    @TableId(value = "relation_Id",type = IdType.ASSIGN_ID)
    private String relationId;

    @ApiModelProperty(value = "主对象ID")
    @TableField("main_Id")
    private String mainId;

    @ApiModelProperty(value = "子对象ID")
    @TableField("sub_Id")
    private String subId;

    @ApiModelProperty(value = "关系类型")
    @TableField("relation_Type")
    private String relationType;

    @ApiModelProperty(value = "是否启用")
    @TableField("is_Enable")
    private Integer isEnable;

    @ApiModelProperty(value = "是否删除")
    @TableField("is_Delete")
    private Integer isDelete;

    @ApiModelProperty(value = "创建者")
    @TableField(value = "creator_Id",fill = FieldFill.INSERT)
    private String creatorId;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_Time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "最后修改者")
    @TableField(value = "last_Update_User_Id",fill = FieldFill.INSERT_UPDATE)
    private String lastUpdateUserId;

    @ApiModelProperty(value = "最后修改时间")
    @TableField(value = "last_Update_Time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime lastUpdateTime;
}
